<h1>WaitForFrame2</h1>

<p>The WaitForFrame2 action instructs the player to wait until the specified frame 
number or named frame has been loaded. If the frame has been loaded then the following <i>n</i> actions are executed. The WaitForFrame2 action extends WaitForFrame by allowing the name of a frame to be specified.</p>

<table>

<tr>
<th nowrap>Field Name</th>
<th>Type</th>
<th>Size</th>
<th>Description</th>
</tr>

<tr>
<td nowrap valign="top"><a name="ActionType">Type</a></td>
<td nowrap valign="top">unsigned int</td>
<td nowrap valign="top" align="right">8</td>
<td>Identifies the action when it is encoded.</td>
</tr>

<tr>
<td nowrap valign="top"><a name="ActionLength">Length</a></td>
<td nowrap valign="top">unsigned int</td>
<td nowrap valign="top" align="right">16</td>
<td>The number of bytes in the rest of the encoded action. The total number of
bytes in the encoded action is Length+3.</td>
</tr>

<tr>
<td nowrap valign="top">actionCount</td>
<td nowrap valign="top">unsigned int</td>
<td nowrap valign="top" align="right">16</td>
<td>The number of actions, following the WaitForFrame2 action that will be executed 
when the frame has been loaded.</td>
</tr>

</table>

<p>WaitForFrame2 is a stack-based action. The frame number or frame name which 
should be loaded to trigger execution of the following actions is popped from 
the Flash Player's stack.</p>

<h2>History</h2>

<p>The WaitForFrame2 action represents the ActionWaitForFrame2 action of the 
Macromedia Flash (SWF) File Format Specification. It was introduced in Flash 4.</p>
